package com.some;

import java.math.BigDecimal;
import java.util.Scanner;

public class Boss01_1 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int m = sc.nextInt();
        int n = sc.nextInt();
        System.out.println(getMinNum2(m, n));
    }

    public static int getMinNum(int m, int n) {
        for (int i = (Math.max(m, n)); i <= (m * n) / Math.min(m, n); i++) {
            if (i % n == 0 && i % m == 0) {
                return i;
            }
        }
        return -1;
    }

    public static BigDecimal getMinNum2(int m, int n) {
        return new BigDecimal(m * n).divide (new BigDecimal(gy(Math.max(m, n), Math.min(m, n))));
    }

    private static int gy(int m, int n) {
        if (m % n == 0) return n;
        return gy(n, m % n);
    }
}
